import { Rule } from '@midwayjs/validate';
import { R } from '../../../common/base.error.util';
import { requiredString } from '../../../common/common.validate.rules';

export class ResetPasswordDTO {
  @Rule(requiredString.error(R.validateError('密码不能为空')))
  password: string;
  @Rule(requiredString.error(R.validateError('公钥不能为空')))
  publicKey: string;
}